package com.mapper;

import org.apache.ibatis.annotations.*;

import com.model.User;

@Mapper
public interface UserMapper {
	
    @Select("SELECT * FROM USER WHERE NAME = #{name}")
    User findByName(String name);
    
    
    @Insert("INSERT INTO USER(name) VALUES(#{name})")
    int insert(String name);
    
}